from django.contrib import admin
from django.urls import path
from apps.users.views import UsernameCountView, MobileCountView, RegisterView, LoginView, LogoutView, UserInfoView,SaveEmailView,EmailVerifyView

urlpatterns = {
    # 判断用户名是否存在
    path('usernames/<username>/count/', UsernameCountView.as_view()),
    # 判断手机号是否存在
    path('mobiles/<mobile>/count/', MobileCountView.as_view()),
    # 注册
    path('register/', RegisterView.as_view()),
    # 登录
    path('login/', LoginView.as_view()),
    # 退出登录
    path('logout/', LogoutView.as_view()),
    # 用户中心
    path('info/', UserInfoView.as_view()),
    #邮箱验证
    path('emails/', SaveEmailView.as_view()),
    #邮箱的激活
    path('emails/verification/', EmailVerifyView.as_view())
}
